package com.app.buss.ui;

import android.webkit.WebView;

import com.app.buss.R;
import com.app.buss.base.BaseActivity;
import com.app.buss.mvp.presenter.MainPresenter;
import com.app.buss.mvp.view.IMainView;

import butterknife.BindView;

public class Forweb2Activity extends BaseActivity<MainPresenter> implements IMainView {
    @BindView(R.id.ll_web)
    WebView llWeb;
    private String url;
    private String title;

    @Override
    protected MainPresenter createPresenter() {
        return new MainPresenter(this);
    }

    @Override
    protected int bindContent() {
        return R.layout.aty_forweb;
    }

    @Override
    protected void initSome() {
        if (getIntent() != null && getIntent().getExtras() != null) {
            url = getIntent().getExtras().getString("url");
            title = getIntent().getExtras().getString("title");
        }
        llWeb.loadUrl(url);
        initToolBar(title);
    }


    @Override
    public void getDataSuccess(Object model) {

    }

    @Override
    public void getDataFail(String msg) {

    }
}
